-
Notifications
You must be signed in to change notification settings - Fork 5
Add pre-commit hooks and github workflow #1040
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Weird that mypy has different output when running with pre-commit |
blankdots
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure I understand the need for both tox and pre-commit workflows
|
Maybe we should fix those as well ? |
pre-commit doesn't run pytest. And tox is good for running the same tests with different environment configuration. Also, keeping it there might show issues with the pre-commit configuration, as it's happening now. |
Did you run |
yes i did :), well i don't see why not update |
If I remove installing |
i think that is not the solution, as removing |
998e92e to
6c94057
Compare
6c94057 to
3bbc83c
Compare
|
Rebased and fixed the mypy issue. Now it runs from locally installed mypy, and added type deps to |
f270105 to
79f9fb4
Compare
|
i am ok with the changes, but tests do need to work again. I remember @csc-jm was working on them, maybe he is interested in this PR |
79f9fb4 to
f5d22a4
Compare
|
Reverted the exception handling to previous code, and used a simpler approach to reduce complexity. |
Fix for tagging functionality in subfolders and files Closes #1040 See merge request sds-dev/sd-connect/swift-browser-ui!61
Description
Add pre-commit hooks and checks.
Also added a github action. If it works, and others agree, we could change a bit the github workflows and tox configuration.
Update your environment and enable the git hooks by running:
Related issues
Type of change
Changes Made
pyspellingconfiguration to root folderruffinstead offlake8andisortTesting
Mentions
It might be easier to review by looking at commits individually.
I tried to use the
pyupgradefixes fromruff, but that broke the tests, and I didn't want to investigate. There are a few other tests that might be interesting to consider in the future: e.g.tryceratops, which checks for how to handle exceptions.